package com.shbaiche.bifenba.model.data;

import com.shbaiche.bifenba.model.base.BoolValue;
import com.shbaiche.bifenba.model.base.PrivateMessage;
import com.shbaiche.bifenba.model.base.TransMessage;
import com.shbaiche.bifenba.model.match.MatchesVo;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

public class TeamInfoMessage extends PrivateMessage implements Serializable{

	// 球队编号
	private String teamId;

	// 比赛类型: 1足球 0篮球
	private String gameType;

	// 球队基本信息
	private TeamInfoVo team;

	//是否已关注
	private BoolValue isFollow;

	// 赛程
	private List<MatchesVo> matches;

	// 足球：前锋，篮球：前锋、小前锋、大前锋
	private List<PlayerVo> forward;

	// 足球：中场，篮球：中锋
	private List<PlayerVo> midfield;

	// 足球：后卫，篮球：后卫、得分后卫、控球后卫
	private List<PlayerVo> guard;

	// 足球：门将
	private List<PlayerVo> goalkeeper;

	// 篮球：其它
	private List<PlayerVo> other;

	// 教练
	private List<PlayerVo> coach;

	// 球队比赛列表
	private Map<String, List<MatchesVo>> voMap;

	public String getTeamId() {
		return teamId;
	}

	public void setTeamId(String teamId) {
		this.teamId = teamId;
	}

	public String getGameType() {
		return gameType;
	}

	public void setGameType(String gameType) {
		this.gameType = gameType;
	}

	public TeamInfoVo getTeam() {
		return team;
	}

	public void setTeam(TeamInfoVo team) {
		this.team = team;
	}

	public List<MatchesVo> getMatches() {
		return matches;
	}

	public void setMatches(List<MatchesVo> matches) {
		this.matches = matches;
	}

	public List<PlayerVo> getForward() {
		return forward;
	}

	public void setForward(List<PlayerVo> forward) {
		this.forward = forward;
	}

	public List<PlayerVo> getMidfield() {
		return midfield;
	}

	public void setMidfield(List<PlayerVo> midfield) {
		this.midfield = midfield;
	}

	public List<PlayerVo> getGuard() {
		return guard;
	}

	public void setGuard(List<PlayerVo> guard) {
		this.guard = guard;
	}

	public List<PlayerVo> getGoalkeeper() {
		return goalkeeper;
	}

	public void setGoalkeeper(List<PlayerVo> goalkeeper) {
		this.goalkeeper = goalkeeper;
	}

	public List<PlayerVo> getCoach() {
		return coach;
	}

	public void setCoach(List<PlayerVo> coach) {
		this.coach = coach;
	}

	public List<PlayerVo> getOther() {
		return other;
	}

	public void setOther(List<PlayerVo> other) {
		this.other = other;
	}

	public Map<String, List<MatchesVo>> getVoMap() {
		return voMap;
	}

	public void setVoMap(Map<String, List<MatchesVo>> voMap) {
		this.voMap = voMap;
	}

	public boolean isFootball(){
		return "1".equals(gameType);
	}

	public BoolValue getIsFollow() {
		return isFollow;
	}

	public void setIsFollow(BoolValue isFollow) {
		this.isFollow = isFollow;
	}

	@Override
	public String toString() {
		return "TeamInfoMessage{" +
				"teamId='" + teamId + '\'' +
				", gameType='" + gameType + '\'' +
				", team=" + team +
				", isFollow=" + isFollow +
				'}';
	}
}